package com.hxd.otc.module.wallet.activity;

import android.view.View;

import com.hxd.otc.R;
import com.hxd.otc.base.BaseActivity;
import com.hxd.otc.mvp.base.BasePresenter;
import com.hxd.otc.widget.TitleBar;

import butterknife.BindView;

/**
 * 作  者 :  卫广玉
 * 时  间 :  2018/6/13 12:05
 * 描  述 :  ${支付成功}
 */
public class RemotePaySuccessActivity extends BaseActivity {
    @BindView(R.id.title_bar)
    TitleBar titleBar;
    boolean isAECPay;

    @Override
    protected int getLayoutId() {
        return R.layout.activity_wallet_remote_pay_success;
    }


    @Override
    protected void initData() {
        if (getIntent().getExtras() != null && getIntent().getExtras().containsKey("isAECPay")) {
            isAECPay = getIntent().getExtras().getBoolean("isAECPay", false);
        }
    }

    @Override
    protected void initEvent() {
        titleBar.setOnTitleBarItemClickListener(new TitleBar.OnTitleBarItemClickListener() {
            @Override
            public void onBack(View v) {
                setResult(RESULT_OK);
                finish();
            }

            @Override
            public void onRight(View v) {
                setResult(RESULT_OK);
                finish();
            }
        });
    }

    @Override
    protected BasePresenter createPresenter() {
        return null;
    }

    @Override
    protected void initView() {
    }

}
